package com.tpo.jnotes.base.resource;

import java.awt.Image;
import java.awt.Toolkit;
import java.net.URL;

import javax.swing.ImageIcon;

public class BResource
{

    private static URL get( String aFileName )
    {
        return BResource.class.getResource( aFileName );
    }

    public static Image getImage( String aFileName )
    {
        return Toolkit.getDefaultToolkit().getImage( get( aFileName ) );
    }

    public static ImageIcon getIcon( String aFileName )
    {
        return new ImageIcon( BResource.class.getResource( aFileName ) );
    }

}
